package com.infore.statisticsAndAlarm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.infore.statisticsAndAlarm.service.insertTest;
import com.infore.statisticsAndAlarm.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "插入数据", tags = {"插入数据" })
@RestController
@RequestMapping("/insertTest")
public class insertDatasTest {
	@Autowired
	private insertTest insertTest;

	@ApiOperation(value="插入day表的数据")
	@GetMapping(value = "/insert")
	public ResultEntity insert() {
		return insertTest.insert();
	}
	
	@ApiOperation(value="插入day表的数据")
	@GetMapping(value = "/insertMonth")
	public ResultEntity insertMonth() {
		return insertTest.insertMonth();
	}
	
	@ApiOperation(value="插入day表的数据")
	@GetMapping(value = "/insertQuater")
	public ResultEntity insertQuater() {
		return insertTest.insertQuater();
	}
	
	@ApiOperation(value="插入day表的数据")
	@GetMapping(value = "/insertYear")
	public ResultEntity insertYear() {
		return insertTest.insertYear();
	}
}
